{extend name="extra@admin/content"}

{block name="content"}
<form onsubmit="return false;" action="__SELF__" data-auto="true" method="post" class='layui-form' style='padding-top:20px'>
    <div class="layui-form-item">
        <label class="layui-form-label">推荐位置</label>
        <div class="layui-input-block">
            <input type="radio" name="is_recommend" value="1" {if condition="!empty($info) AND ($info.is_recommend eq 1)"} checked {/if} title="推荐位一">
            <input type="radio" name="is_recommend" value="2" {if condition="!empty($info) AND ($info.is_recommend eq 2)"} checked {/if} title="推荐位二">
            <input type="radio" name="is_recommend" value="3" title="取消推荐">
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    <div class="col-sm-4 col-sm-offset-2">
        <input type="hidden" name="id" value="{$id}">
        <div class="layui-form-item text-center">
            <button class="layui-btn" type="submit">保存</button>
        </div>
    </div>
    <script type="text/javascript">
    layui.use('form', function(){
        var form = layui.form;      //只有执行了这一步，部分表单元素才会自动修饰成功
        form.render();
    });
    </script>
</form>

{/block}